Using Win32 Office Screen Elements During Runtime
You can use captured screen element types in your project. Below is an example of how to work with the properties and functions of a Win32 Office Access Edit screen element in the Monitor during runtime.
For an example of Screen Element usage, see Using a Screen Element (Example) for details.
To interact with Win32 Office screen elements during runtime:
1. | Run the project and run Monitor. For more information, see Running the Monitor. |
2. | Click the Screen Element tab and expand the object hierarchy. |
The full hierarchy of the captured Win32 Office screen element is displayed, including hidden captures.
3. | Select the Win32 Office screen element in the tree on the left. |
The properties of the screen element are listed in the Properties tab on the right:
Monitor shows only functions of simple returns (Boolean, DateTime, Decimal, Number, Text; see Using Win32 Office Screen Elements During Runtime for details). To view properties of other types (List type, Screen Element Rectangle type, and other business entities), you must bind them to business entities in the project.
Monitor also enables you to manipulate the Win32 Office screen element properties that have enabled the Set method. The rest of the properties only allow the retrieval of actual values from the physical object in the application.
You can view all attributes of the properties on the Properties table on the Functionality tab in the Real-Time Designer.
4. | Click the Functions tab. The functions of the screen element are listed in the Available Functions drop-down list. |
Monitor displays only properties of simple types. Functions of typessuch as List of PO, PO and CtrlPO are not shown. To use functions not shown in Monitor, you need to define them in the Business Entities module in Real-Time Designer. See Functions With Complex Return Types for details.
Functions With Complex Return Types
You can define complex functions for the Win32 Office Access screen elements that are listed in the Functionality tab:
Get Enumerator
Get Instance By Parent
Get Instances
Instances of CtrlPO type are every screen element that is not a Process screen element. Instances of PO type are every screen element (for example, CtrlPO + Process).
The complex functions of other Win32 screen elements can be created according to the examples listed below for the Win32 Button screen element.